import request from "@/utils/request";

//列表
export const financeTcCostConfigList = (data) =>
  request({
    url: `/finance/tc-cost-config/index`,
    method: "post",
    data,
  });
//获取头程费用项
export const optsTcFeeConfig = (data) =>
  request({
    url: `/opts/tc-fee-config`,
    method: "post",
    data,
  });
//获取头程主费用项
export const optsTcMainConfig = (data) =>
  request({
    url: `/opts/finance-tc-main-fee`,
    method: "post",
    data,
  });
//详情
export const financeTcCostConfigDetail = (params) =>
  request({
    url: `/finance/tc-cost-config/detail`,
    method: "get",
    params,
  });
//新增
export const financeTcCostConfigCreate = (data) =>
  request({
    url: `/finance/tc-cost-config/create`,
    method: "post",
    data,
  });
//编辑
export const financeTcCostConfigUpdate = (data) =>
  request({
    url: `/finance/tc-cost-config/update`,
    method: "post",
    data,
  });
  //删除
  export const financeTcCostConfigDelete = (data) =>
  request({
    url: `/finance/tc-cost-config/delete`,
    method: "post",
    data,
  });
 
